package com.my.demo;

import com.sun.jna.Library;
import com.sun.jna.Native;

/**
 * @description:
 * @author: marshal
 * @date: 2021-08-20 9:50 AM
 */
public class FileTest2 {

    public interface TxtLib extends Library {
        FileTest2.TxtLib INSTANCE = Native.load(("libfile.so"), FileTest2.TxtLib.class);

        void open_txt(String path);
    }


    public static void main(String[] args) {
        String path = "/home/marshal/test/file/num.txt";
        FileTest2.TxtLib.INSTANCE.open_txt(path);
    }
}
